# PARSER=parser 
# SSVR=searcher 
# cc=g++
# .PHONY:all 
# all: $(PARSER) 
# $(PARSER):parser.cc 
# 	$(cc) -o $@ $^ -std=c++11 -lboost_filesystem -lboost_system 
# .PHONY:clean
# clean:
# 	rm -rf $(PARSER) 

# for debug
# PARSER=parser 
# DUG=debug 
# HTTPSERVER=httpserver 
# cc=g++
# .PHONY:all 
# all: $(PARSER) $(DUG) $(HTTPSERVER)
# $(PARSER):parser.cc 
# 	$(cc) -o $@ $^ -std=c++11 -lboost_filesystem -lboost_system 
# $(DUG):Debug.cc 
# 	$(cc) -o $@ $^ -std=c++11 -ljsoncpp 
# $(HTTPSERVER):http_server.cc 
# 	$(cc) -o $@ $^ -std=c++11 -ljsoncpp 	
# .PHONY:clean
# clean:
# 	rm -rf $(PARSER) $(DUG) $(HTTPSERVER)


PARSER=parser 
HTTPSERVER=httpserver 
cc=g++
.PHONY:all 
all: $(PARSER)  $(HTTPSERVER)
$(PARSER):parser.cc 
	$(cc) -o $@ $^ -std=c++11 -lboost_filesystem -lboost_system 
$(HTTPSERVER):http_server.cc 
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp 	
.PHONY:clean
clean:
	rm -rf $(PARSER)  $(HTTPSERVER)
